/*
 * @Author: Seven
 * @Date: 2023-06-24 11:15:01
 * @LastEditors: Seven
 * @LastEditTime: 2023-06-24 19:00:03
 * @FilePath: \EthersAndWeb3\vite.config.ts
 * @Description: 
 */
import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import path from 'path'

// https://vitejs.dev/config/
export default defineConfig({
  plugins: [vue()],
  resolve: {
    alias: {
      '@': path.resolve(__dirname, 'src'), // 配置别名
      web3: path.resolve(__dirname, './node_modules/web3/dist/web3.min.js')
    },
    extensions:['.js','.tsx','.ts']
  },
  define: { 'process.env': {} }
})
